home *** CD-ROM | disk | FTP | other *** search
- /xlv1/freeware/1998.Oct/netpbm/1mar1994/netpbm.diffbuild/pgm
-
-
-
- ppppggggmmmmkkkkeeeerrrrnnnneeeellll((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((11110000 DDDDeeeecccceeeemmmmbbbbeeeerrrr 1111999999992222)))) ppppggggmmmmkkkkeeeerrrrnnnneeeellll((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- pgmkernel - generate a convolution kernel
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ppppggggmmmmkkkkeeeerrrrnnnneeeellll [ ----wwwweeeeiiiigggghhhhtttt _w ] _w_i_d_t_h [ _h_e_i_g_h_t ]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- Generates a portable graymap array of size _w_i_d_t_h x _h_e_i_g_h_t
- (or _w_i_d_t_h x _w_i_d_t_h if _h_e_i_g_h_t is not specified) to be used as
- a convolution file by ppppnnnnmmmmccccoooonnnnvvvvoooollll. The data in the
- convolution array K are computed according to the formula:
-
- K(i,j) = 1 / ( 1 + w * sqrt((i-width/2)^2 + (j-height/2)^2))
-
- where _w is a coefficient specified via the -_w_e_i_g_h_t flag, and
- _w_i_d_t_h and _h_e_i_g_h_t are the X and Y filter sizes.
-
- The output PGM file is always written out in ASCII format.
-
- OOOOPPPPTTTTIIIIOOOONNNNSSSS
- The optional -_w_e_i_g_h_t flag should be a real number greater
- than -1. The default value is 6.0.
-
- BBBBUUUUGGGGSSSS
- The computation time is proportional to _w_i_d_t_h * _h_e_i_g_h_t.
- This increases rapidly with the increase of the kernel size.
- A better approach could be using a FFT in these cases.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- pnmconvol(1), pnmsmooth(1)
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Alberto Accomazzi (alberto@cfa.harvard.edu).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 1 (printed 8/31/98)
-
-
-
-